package com.qfjy.LiHuanHuan;

/**
 * @author:lihunahuan
 * @date:2022/9/13 17:53
 * @version: 1.0
 */

/**
 * 步骤一
 * 创建 Employee 类
 */
public class Employee {
    private Integer empId;//员工编号
    private String empName;//员工姓名
    private int age;//员工年龄
    private Double salary;//工资

    public Employee() {
    }

    public Employee(Integer empId, String empName, int age, Double salary) {
        this.empId = empId;
        this.empName = empName;
        this.age = age;
        this.salary = salary;
    }

    public Integer getEmpId() {
        return empId;
    }

    public void setEmpId(Integer empId) {
        this.empId = empId;
    }

    public String getEmpName() {
        return empName;
    }

    public void setEmpName(String empName) {
        this.empName = empName;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public Double getSalary() {
        return salary;
    }

    public void setSalary(Double salary) {
        this.salary = salary;
    }

    @Override
    public String toString() {
        return "Employee{" +
                "empId=" + empId +
                ", empName='" + empName + '\'' +
                ", age=" + age +
                ", salary=" + salary +
                '}';
    }
}
